_ostree_repo_file_replace_contents: make buf const
authorGiuseppe Scrivano <gscrivan@redhat.com>
Tue, 14 Apr 2015 07:56:13 +0000 (09:56 +0200)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Tue, 14 Apr 2015 15:42:24 +0000 (17:42 +0200)
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
src/libostree/ostree-repo-private.h
src/libostree/ostree-repo.c

index ceed471105e82ee6f4a5dbed6b3de5b4282b1ad9..adf5ec2b0164b36a65d037fcd9543f8e1b872880 100644 (file)
@@ -130,7 +130,7 @@ gboolean
 _ostree_repo_file_replace_contents (OstreeRepo    *self,
                                     int            dfd,
                                     const char    *path,
-                                    guint8        *buf,
+                                    const guint8  *buf,
                                     gsize          len,
                                     GCancellable  *cancellable,
                                     GError       **error);
index b27fcce8e4d19d0bc757fdd1c81659a180894f74..5215e6654433385f4cb470d384a1da0d592eec72 100644 (file)
@@ -1509,7 +1509,7 @@ gboolean
 _ostree_repo_file_replace_contents (OstreeRepo    *self,
                                     int            dfd,
                                     const char    *path,
-                                    guint8        *buf,
+                                    const guint8   *buf,
                                     gsize          len,
                                     GCancellable  *cancellable,
                                     GError       **error)